﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SW2A311A
{
    static public class NoiseLevelCalc
    {
        static public double Set(double value)
        {
            if (new Range(0, 140).IsOrBetween(value))
                return value;
            else
                throw new ArgumentOutOfRangeException("Noiselevel", "Skal være mellem 0 og 140");
        }
    }
}
